<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vue路由中history模式的实现</title>
  </head>
  <body>
    <h1>Vue路由中history模式的实现</h1>
    <button id="myBtn">改变url</button>
    <script>
      class Parent {
        constructor(name) {
          this.name = name;
        }

        sayName() {
          console.log(`my name is ${this.name}`);
        }
      }

      let p = new Parent("钟先生");
      p.sayName();

      class Parent2 {
        constructor(age) {
          this.age = age;
        }

        sayAge() {
          console.log(`my age is ${this.age}`);
        }
      }

      let p2 = new Parent2(38);
      p2.sayAge();


      let children = 
    </script>
  </body>
</html>
